package com.wuye.bpm;


//public class ProcessInstanceDiagramCmd implements Command<InputStream> {
//
//	protected String processInstanceId;
//	
//	@Resource
//	ProcessEngine engine;
//
//	public ProcessInstanceDiagramCmd(String processInstanceId) {
//		this.processInstanceId = processInstanceId;
//	}
//
//	public InputStream execute(CommandContext commandContext) {
//		ExecutionEntityManager executionEntityManager = commandContext.getExecutionEntityManager();
//		ExecutionEntity executionEntity = executionEntityManager.findExecutionById(processInstanceId);
//		String processDefinitionId = executionEntity.getProcessDefinitionId();
////		List<String> activiityIds = executionEntity.findActiveActivityIds();
//		RepositoryService rs = engine.getRepositoryService();
//		InputStream is = rs.getProcessDiagram(processDefinitionId);
//
//		return is;
//	}
//
//}
